package mspbots.data.tl.prod.tsheet.listener;

import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import mspbots.data.tl.prod.tsheet.model.TsheetsTime;
import mspbots.data.tl.prod.tsheet.service.TsheetsService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Log4j2
@Service
@Component
@RequiredArgsConstructor
public class TsheetSyncListener {

    private final TsheetsService timesheetsService;

//    @RabbitListener(queues = "timesheet.times.tl")
    public void syncTimesheet(TsheetsTime sheetsTime) {
        timesheetsService.sync(sheetsTime);
    }

}
